'It is recommended to test the script on a local machine for its purpose and effects. 'ManageEngine Desktop Central will not be responsible for any 'damage/loss to the data/setup based on the behavior of the script. 'Description - Script to disable Java updates 'Parameters - 'Remarks - 'Configuration Type - COMPUTER '============================================================== Const HKEY_LOCAL_MACHINE = &H80000002 strComputer = "." Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _ strComputer & "\root\default:StdRegProv") Dim WshShell Dim WshProcEnv Dim system_architecture Dim process_architecture Set WshShell = CreateObject("WScript.Shell") Set WshProcEnv = WshShell.Environment("Process") process_architecture= WshProcEnv("PROCESSOR_ARCHITECTURE") Set oShell = CreateObject("WScript.Shell") If process_architecture = "AMD64" Then oShell.Run "reg add ""HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\JavaSoft\Java Update\Policy"" /v EnableJavaUpdate /t REG_DWORD /d 0 /f",true Else oShell.Run "reg add ""HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy"" /v EnableJavaUpdate /t REG_DWORD /d 0 /f",true End If